const baseUrl = '/dev-api';

export function get(reqUrl, callback) {
  return {
    url: baseUrl + reqUrl,
    method: 'get',
    response: (processedRequest, req, res) => {
      if (callback) {
        return callback(processedRequest, req, res);
      }
    }
  };
}

export function post(reqUrl, callback) {
  return {
    url: baseUrl + reqUrl,
    method: 'post',
    response: (processedRequest, req, res) => {
      if (callback) {
        return callback(processedRequest, req, res);
      }
    }
  };
}
